from likeshop.base.mybase import Tools


# 设置默认地址
class set_default_address_model(Tools):
    # 定义登录路径
    path = "/page/user_address/setdefault"

    # 发送登录请求
    def set_default_address_action(self, di_id, db):
        mydata = {
            'id': di_id
        }
        res = self.session.post(url=self.hosturl+self.path, data=mydata, headers=db)
        return res.json()


